<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>typeof 检测数据类型</title>
</head>

<body>
    <script>
        // typeof 检测数据类型
        var num = 10;
        console.log(typeof num); // number
        console.log(num); // number

        var str = "RedBalloon";
        console.log(typeof str); // string
    </script>
</body>

</html>